package com.ddwl.schema.bo.goods.bargain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.math.BigDecimal;

/**
 * @Author hemiaojun
 * @Date 2020/11/6 13:55
 */
@Getter
@Setter
@ApiModel("砍价活动配置新增Bo")
public class BargainConfigAddBo {
    
    @ApiModelProperty("店铺id")
    private String shopId;

    @ApiModelProperty("用户砍价限制次数")
    private Integer limitTimes;

    @ApiModelProperty("限制周期 1：天，2：周")
    private Integer limitPeriod;

    @ApiModelProperty("困难模式金额限额")
    private BigDecimal hardModeMoney;

    @ApiModelProperty("困难模式成功订单数量限额")
    private Integer hardModeOrder;

    @Min(value = 1,message = "难度倍率不能小于1")
    @Max(value = 99,message = "难度倍率不能大于99")
    @ApiModelProperty("难度倍率（整数）")
    private Integer hardRate;

}
